#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int wordnum = 0, number = 0, other = 0;
	char ch;
	while ((ch = getchar()) != '\n')
		if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'z'))
			wordnum++;
		else if (ch >= '0' && ch <= '9')
			number++;
		else
			other++;
	printf("wordnum=%d,number=%d,other=%d\n", wordnum, number, other);
	return 0;
}